﻿<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>web-gobang</title>
<link rel="stylesheet" href="css/style.css">
<style>
	#result{
		width: 200px;
		height: 100px;
	}
</style>
</head>
<body>
	<div id="other"></div>
<div id="box">
	<div id="centent">
		<canvas id="canvas" width="450" height="450"></canvas>
	</div>
	
	<button id="match">开始匹配</button>
	<button id="button">撤回</button>
	<button id="anew">重开</button>

	<div id="state">
		<div class="state-chess Bchess"></div>
		<div class="chessName">黑棋走</div>
	</div>
	<div id="winner">
		<div class="state-chess Bchess"></div>
		<div class="chessName"></div>
	</div>
</div>

<script src="js/script.js"></script>
<script src="js/jquery-2.1.0.min.js"></script>
<script>
    game.drawLine()//绘制棋盘
	//game.init()
	game.start_match.addEventListener("mousedown", game.SetMatch)//注册回调 开始匹配
    game.canvas.addEventListener("mousedown",game.canvasClick)//下棋点击事件
    game.regret_chess.addEventListener("mousedown",game.regret)//悔棋
    game.anew.addEventListener("mousedown",game.anewClick)//重开
</script>
<div id="my"></div>
<div id="result"></div>
</body>
</html>
